import request from '@/utils/request'

const spacePath = {
	saveSpace: '/space/save',
	modifySpace: '/space/modify',
	removeSpace: '/space/remove',
	spaceList: '/space/searchList',
	getSpace: '/space/get'
}

export function saveSpace(param){
	return request({
		url: spacePath.saveSpace,
		method: 'post',
		data: param
	})
}

export function modifySpace(param){
	return request({
		url: spacePath.modifySpace,
		method: 'post',
		data: param
	})
}

export function removeSpace(param){
	return request({
		url: spacePath.removeSpace,
		method: 'post',
		data: param
	})
}

export function spaceList(param){
	return request({
		url: spacePath.spaceList,
		method: 'get',
		data: param
	})
}

export function getSpace(param){
	return request({
		url: spacePath.getSpace,
		method: 'get',
		data: param
	})
}